<?php

namespace app\teacher\model;

use think\Model;
use app\common\model\Language as LanguageModel;

class Language extends LanguageModel
{
    protected $visible = ['language_id', 'title'];
    /**
     * 语种
     */
    public static function getOnline()
    {
        return self::where(static::whereOnline())->order(static::WEIGH_DESC)->select();
    }
}
